package oop8;

/**
 * @author oldliu
 * @since 1.0
 */
public class TestPainter {
    public static void main(String[] args) {
        //绘图工具对象
        Painter p=new Painter("CorelDraw 11");
        //三种图像
        Circle c=new Circle(14);
        Square s=new Square(6,13);
        //父类类型指代子类对象
        Shape sanjiao=new Triangle(3,4,5);
        p.calc(c);
        p.calc(s);
        p.calc(sanjiao);
    }
}
